home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / master / Examples / CC / defs.h < prev    next >
C/C++ Source or Header  |  1994-02-01  |  2KB  |  89 lines

  1.  
  2. /*
  3.  *  DEFS.H
  4.  *
  5.  *  (c)Copyright 1990, All Rights Reserved
  6.  */
  7.  
  8. #ifdef AMIGA
  9.  
  10. #define DLIBPRE ""
  11. #define DLIBPOS "dlib:"
  12.  
  13. #include <exec/types.h>
  14. #include <exec/nodes.h>
  15. #include <exec/lists.h>
  16. #include <exec/libraries.h>
  17. #include <libraries/dos.h>
  18. #include <libraries/dosextens.h>
  19. #ifdef LATTICE            /*  only req'd for Lattice resident */
  20. #include <proto/exec.h>
  21. #include <proto/dos.h>
  22. #define __aligned
  23. #else
  24. #include <lib/misc.h>
  25. #include <lib/unix.h>
  26. #endif
  27.  
  28. #ifndef INCLUDE_VERSION     /*  2.0 compilation compat check */
  29. #define INCLUDE_VERSION     0
  30. #else
  31. #include <clib/exec_protos.h>
  32. #include <clib/dos_protos.h>
  33. #include <clib/alib_protos.h>
  34. #endif
  35.  
  36. #else
  37.  
  38. #define DLIBPRE "/usr/local/dice/"
  39. #define DLIBPOS "dlib/"
  40.  
  41. #include <suplib/lists.h>
  42. #include <suplib/string.h>
  43. #include <suplib/stdlib.h>
  44. #include <suplib/memory.h>
  45. #include <sys/stat.h>
  46.  
  47. #define __aligned
  48.  
  49. #endif
  50.  
  51. #ifdef DEBUG
  52. #define dbprintf(x) if (DDebug) printf x
  53. #else
  54. #define dbprintf(x)
  55. #endif
  56.  
  57. #include <stdio.h>
  58. #include <stdlib.h>
  59. #include <fcntl.h>
  60. #include <string.h>
  61. #include <errno.h>
  62. #ifdef AMIGA
  63. #include <lib/version.h>
  64. #endif
  65.  
  66. #define Prototype   extern
  67. #define Local
  68.  
  69. #define BTOC(bptr,ctype)    ((ctype *)((long)bptr << 2))
  70. #define CTOB(ptr)           ((long)(ptr) >> 2)
  71.  
  72. typedef unsigned char    ubyte;
  73. typedef unsigned short    uword;
  74. typedef unsigned long    ulong;
  75. typedef struct CommandLineInterface    CLI;
  76. typedef struct Process         Process;
  77. typedef struct List         List;
  78. typedef struct FileInfoBlock FIB;
  79. typedef struct Node         Node;
  80.  
  81. #define DICE_C        0
  82. #define LATTICE_C   1
  83. #define AZTEC_C     2
  84.  
  85.  
  86.  
  87. #include "DCC-protos.h"
  88.  
  89.